package org.apache.my;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface OpLogMapper {

	@Select("select * from t_user where user_id = #{userId}")
	User detail(@Param("userId") Long userId);

	@Select("select * from t_op_log limit 100000")
	List<OpLog> list();

	@Update("update t_user set user_id = 1 where  user_id = #{userId}")
	int update(@Param("userId") Long userId);

}
